home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10295 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: given: char foo[80]; there is no such thing as element foo[
  5. Date: Sat, 16 Mar 96 14:38:01 GMT
  6. Organization: none
  7. Message-ID: <826987081snz@genesis.demon.co.uk>
  8. References: <3148DBB6.1353@hawaii.edu> <AD6F4E3B9668B8092@mcdialb09.it.luc.edu>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <AD6F4E3B9668B8092@mcdialb09.it.luc.edu>
  15.            VArase@varase.it.luc.edu "Verne Arase" writes:
  16.  
  17. >In article <3148DBB6.1353@hawaii.edu>,
  18. >Dave Carien <davec@hawaii.edu> wrote:
  19. >
  20. > >Yes or no on this, I just recently got confused by two different books. I
  21. >
  22. > >assume that the declaration foo[80] allocates storage for elements 0-79. 
  23. > >A string could be terminated by doing something like foo[79] = '\0', but 
  24. > >foo[80] = '\0' would be invalid because such an element does not exist. 
  25. > >Just looking for confirmation that I'm right here. A simple Y or N will 
  26. > >do thanks.
  27. >
  28. >Y :-).
  29. >
  30. >Assigning a value to foo[80] _could_ result in a storage overlay.
  31.  
  32. What is a 'storage overlay'?
  33.  
  34. -- 
  35. -----------------------------------------
  36. Lawrence Kirby | fred@genesis.demon.co.uk
  37. Wilts, England | 70734.126@compuserve.com
  38. -----------------------------------------
  39.